package com.macro.mall.portal.controller;

import com.macro.mall.model.UmsMember;
import com.macro.mall.portal.domain.MemberDetails;
import com.macro.mall.portal.util.WebUtils;

/**
 * class
 *
 * @author xuyanjun
 * @date 2019-12-09
 */
public class BaseController {

    /**
     * 获取当前登录用户
     *
     * @return 当前登录用户
     */
    protected UmsMember getCurrentUser() {
        MemberDetails memberDetails = (MemberDetails) WebUtils.getCurrentUser();
        return memberDetails.getUmsMember();
    }
}
